from pyecharts import options as opts
from pyecharts.charts import Bar
from pyecharts.faker import Faker

c = (
    Bar()
        .add_xaxis(Faker.days_attrs)
        .add_yaxis("商家A", Faker.days_values, color=Faker.rand_color())
        .set_global_opts(
        title_opts=opts.TitleOpts(title="07柱状图通过垂直滑块缩放数据"),
        datazoom_opts=opts.DataZoomOpts(orient="vertical"),
    )
        .render("07柱状图通过垂直滑块缩放数据.html")
)
